﻿using System.Text.Json.Serialization;

namespace Sirius.Entity
{
    public class Schedule
    {
        //日程ID
        [JsonPropertyName("id")]
        public string Id { get; set; }
        
        //日程名称
        [JsonPropertyName("name")]
        public string Name { get; set; }

        //日程描述
        [JsonPropertyName("descripton")]
        public string Description { get; set; }

        //日程开始时间戳(ms)
        [JsonPropertyName("start_timestamp")]
        public string start_TimeStamp { get; set; }

        //日程结束时间戳(ms)
        [JsonPropertyName("end_timestamp")]
        public string end_TimeStamp { get; set; }

        //创建者
        [JsonPropertyName("creator")]
        public Member creator { get; set; }

        //日程开始时跳转的子频道ID
        [JsonPropertyName("jump_channel_id")]
        public string jump_Channel_Id { get; set; }

        //日程提醒类型,参考RemindType
        [JsonPropertyName("remind_type")]
        public string RemindType { get; set; }
    }
    public enum RemindType
    {
        //不提醒
        QUIET = 0,

        //开始时提醒
        START = 1,

        //开始前5分钟提醒
        FIVE_MINUTE = 2,

        //开始前15分钟提醒
        FIFTEEN_MINUTE = 3,

        //开始前30分钟提醒
        THIRTY_MINUTE = 4,

        //开始前60分钟提醒
        SIXTY_MINUTE = 5
    }
}